@extends('wechat')
@section('css')
    <style type="text/css">
        .giftimg{width: 7em;height: 8em;}
    </style>
@endsection
@section('content')
    <div class="wrap">
        <div class="gu_box">
            <div class="gu_box_L">
                <div class="about">振豪科技<span>|</span> 国庆礼包<span>|</span> {{$item->title}}</div>
                <div class="t_name">
                    <div class="jd jd_blue">
                        <div name="myStat" data-dimension="50" data-text="60%" data-info="New Clients" data-width="3" data-fontsize="16" data-percent="60" data-fgcolor="#00bffc" data-bgcolor="#eee" data-fill="#fff"></div>
                    </div>
                    <div class="txt">
                        <h1>{{$item->title}}</h1>
                        <p>活动时间：{{$item->start_at}}  {{$item->end_at}}</p>
                    </div>
                </div>
                <div class="date_box">

                    <img src="{{asset('images/i_z.gif')}}" width="26" height="22"><span class="num org">
                     @if($item->id==1)
                        @if($item->id==1)&yen;{{$model[0]->end}}
                        @else{{($model[0]->income*100).'%'}}
                        @endif</span>
                    <span class="org">+</span><span class="num org">
                        @if($item->id==1)&yen;{{$model[1]->end}}
                        @else{{ ($model[1]->income*100).'%' }}
                        @endif</span>
                    @else
                        @if($item->id==1){{$model[0]->end}}
                        @else{{($model[0]->income*100).'%'}}
                        @endif</span>
                    @endif
                    <img src="{{asset('images/i_t.gif')}}" width="12" height="12">
                    <span class="v_line"></span>
                    <img src="{{asset('images/i_b.gif')}}" width="22" height="22">
                    <span class="num">{{$model[0]->cycle}}</span>
                    <img src="{{asset('images/i_t.gif')}}" width="12" height="12">
                    <span class="v_line"></span>
                    <img src="{{asset('images/i_w.gif')}}" width="24" height="24">
                    <span class="num">{{$item->amount/10000}}</span><span>万</span>

                </div>

                <div class="intro">
                    {!! $item->activity !!}
                    {{--<span>活动详情</span>--}}
                    {{--<p>国庆到！振豪科技为大家准备了特别礼物——“国庆特供零钱包产品”，锁定28天，让无忧过节的你零钱多起来！1000元就能收益58元哦！</p>--}}
                </div>

                <div class="de_tab">
                    <ul>
                        <li class="current">项目信息</li>
                        <li>礼品赠送</li>
                        {{--<li>还款计划</li>--}}
                        {{--<li>项目历程</li>--}}
                        {{--<li>投资列表</li>--}}
                    </ul>
                    <div class="clear"></div>
                </div>

                <div class="de_con_w">
                    <div class="de_con">
                        <div class="xm_list">
                            <dl>
                                <dt>项目总金额</dt>
                                <dd>&yen;{{$item->amount}}</dd>
                            </dl>
                            <dl>
                                <dt>开始日期</dt>
                                <dd>{{$item->start_at}}</dd>
                            </dl>
                            <dl>
                                <dt>还款日期</dt>
                                <dd>{{$item->pay_at}}</dd>
                            </dl>
                            <dl>
                                <dt>还款方式</dt>
                                <dd>{{$item->payment}}</dd>
                            </dl>
                            <dl>
                                <dt>起息方式</dt>
                                <dd>{{$item->interest}}</dt>
                            </dl>
                            <dl>
                                <dt>投资进度</dt>
                                <dd>60%</dt>
                            </dl>
                            <div class="clear"></div>
                        </div>

                        <div class="de_tit">产品类别</div>
                        <table class="hk_table" width="100" border="0" cellspacing="0" cellpadding="0">
                            <tbody>
                            <tr>
                                <th class="w_1">产品类型</th>
                                <th class="w_2">可投金额</th>
                                @if($item->id==1)
                                <th class="w_3">结束收益</th>
                                @else

                                @endif
                                <th class="w_4">收益期限</th>
                            </tr>
                            @foreach($model as $key => $value)
                            <tr>
                                <td class="w_1">{{$value->mold}}</td>
                                <td class="w_2">&yen;{{$value->price}}</td>
                                @if($item->id==1)
                                <td class="w_3">&yen;{{$value->end}}</td>
                                @else
                                    --
                                @endif
                                <td class="w_4">{{$value->cycle}}</td>
                            </tr>
                            @endforeach
                            </tbody>
                        </table>

                        <div class="de_tit"><a style="margin-left: 37%" class="btn" href="{{url('wechat/buy/'.$item->id)}}">购买</a></div>

                    </div>

                    <div class="de_con" style="display: none">
                        @if($item->id==1)
                        <div class="fk_list">
                            <dl>
                                <dt>扫一扫，送大礼</dt>
                                <dd>
                                    <div style="margin-bottom: 1em;margin-top: 1em;">第一重   扫一扫，关注“振豪科技”，即可领取一个精美礼品杯。</div>
                                    <div>
                                        <img src="{{asset('images/shuibei.gif')}}" class="giftimg" alt="礼品">
                                    </div>
                                </dd>

                                <dd>
                                    <div style="margin-bottom: 1em;margin-top: 1em;">第二重   扫一扫，购买1000元零钱包理财产品的，在获得礼品杯的基础上还可再获得精致羽毛球拍一支。</div>
                                    <div>
                                        <img src="{{asset('images/shuibei.gif')}}" class="giftimg" alt="礼品">
                                        <span style="vertical-align: middle;">+</span>
                                        <img src="{{asset('images/qiupai.jpg')}}" class="giftimg" alt="礼品">
                                    </div>
                                </dd>

                                <dd>
                                    <div style="margin-bottom: 1em;margin-top: 1em;">第三重   扫一扫，购买1000元+2000元零钱包理财产品的，在获得礼品杯的基础上还可再获得精致羽毛球拍一对。</div>
                                    <div>
                                        <img src="{{asset('images/shuibei.gif')}}" class="giftimg" alt="礼品">
                                        <span style="vertical-align: middle;">+</span>
                                        <img src="{{asset('images/qiupai.jpg')}}" class="giftimg" alt="礼品">
                                        {{--<span>+</span>--}}
                                        {{--<img src="{{asset('images/shuibei.gif')}}" class="giftimg" alt="礼品">--}}
                                    </div>
                                    <div>（礼物可线下直接领取，也可留下地址免邮寄件到家。）</div>
                                </dd>
                            </dl>
                        </div>
                        @elseif($item->id==5)
                            {{--礼包一为5--}}
                            <div style="margin-bottom: 1em;margin-top: 1em;">
                                {!! $item->gift !!}
                            </div>
                        @elseif($item->id==6)
                            {{--礼包三为6--}}
                            <div style="margin-bottom: 1em;margin-top: 1em;">
                                {!! $item->gift !!}
                            </div>
                         @else
                            {{--礼包二为9--}}
                            <div style="margin-bottom: 1em;margin-top: 1em;">
                                {!! $item->gift !!}
                          </div>
                        @endif
                        <div class="de_tit" style="margin-top: 2em;">特别说明</div>
                        <div class="fk_list">
                            {!! $item->explain !!}
                            <div class="clear"></div>
                        </div>

                    </div>

                    <div class="de_con"  style="display:none">
                        <table class="hk_table" width="100" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <th class="w_1">期次</th>
                                <th class="w_2">收款日</th>
                                <th class="w_3">应收本金(元)</th>
                                <th class="w_4">应收利息(元)</th>
                            </tr>
                            <tr>
                                <td class="w_1">1</td>
                                <td class="w_2">2016-11-23</td>
                                <td class="w_3">200,000.00</td>
                                <td class="w_4">2,424.66</td>
                            </tr>
                            <tr>
                                <td class="w_1">1</td>
                                <td class="w_2">2016-11-23</td>
                                <td class="w_3">200,000.00</td>
                                <td class="w_4">2,424.66</td>
                            </tr>
                            <tr>
                                <td class="w_1">1</td>
                                <td class="w_2">2016-11-23</td>
                                <td class="w_3">200,000.00</td>
                                <td class="w_4">2,424.66</td>
                            </tr>
                        </table>

                    </div>


                    <div class="de_con" style="display:none">
                        <div class="lc_list">
                            <div class="lc">
                                <div class="i i_1"></div>
                                <div class="c_name">项目上线</div>
                                <p>上线时间：2016-09-24 | 操作人：qi****an</p>
                            </div>
                            <div class="lc">
                                <div class="i i_2"></div>
                                <div class="c_name">项目募集</div>
                                <p>开始时间：2016-09-24 22:40:00<br />
                                    完成时间：2016-09-25 08:31:48</p>
                            </div>
                            <div class="lc">
                                <div class="i i_3"></div>
                                <div class="c_name">项目放款</div>
                                <p>完成时间：2016-09-25 08:32:22 | 操作人：zh****wx</p>
                            </div>
                            <div class="lc end">
                                <div class="i i_4 i_green"></div>
                                <div class="c_name">项目放款</div>
                                <p>已还款：10.27 （1 期）| 待还款：202,424.62 （1 期）</p>
                            </div>
                        </div>
                    </div>

                    <div class="de_con" style="display:none">
                        <table class="hk_table" width="100" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <th class="w_1">时间</th>
                                <th class="w_2">用户</th>
                                <th class="w_4">投资金额(元)</th>
                            </tr>
                            <tr>
                                <td class="w_1">2016-09-24 23:28:34	</td>
                                <td class="w_2">m3****42</td>
                                <td class="w_4">50,000.00</td>
                            </tr>
                            <tr>
                                <td class="w_1">2016-09-24 23:28:34	</td>
                                <td class="w_2">m3****42</td>
                                <td class="w_4">50,000.00</td>
                            </tr>
                            <tr>
                                <td class="w_1">2016-09-24 23:28:34	</td>
                                <td class="w_2">m3****42</td>
                                <td class="w_4">50,000.00</td>
                            </tr>
                            <tr>
                                <td class="w_1">2016-09-24 23:28:34	</td>
                                <td class="w_2">m3****42</td>
                                <td class="w_4">50,000.00</td>
                            </tr>
                            <tr>
                                <td class="w_1">2016-09-24 23:28:34	</td>
                                <td class="w_2">m3****42</td>
                                <td class="w_4">50,000.00</td>
                            </tr>
                        </table>

                    </div>

                </div>

            </div>
            <div class="gu_box_R">
                <div class="tx">小熊猫金服提醒您：投资有风险<a href="#">[详情]</a></div>
                <div class="wanc">
                    <b>投标完成</b>
                    融资金额：<span>{{$item->amount}}</span>元
                    <a class="btn" href="#">关注其他项目</a>
                </div>

                <div class="tit_tj">推荐投资</div>
                <div class="tjtz_list">
                    <ul>
                        <li>
                            <div class="li_L">
                                <div class="t_1"><span>10.5</span>%</div>
                                <div class="t_2">折让<br />0%</div>
                                <div class="t_3">剩余<br />604天</div>
                            </div>
                            <div class="li_R">
                                <div class="t_name"><a href="#">债权转让项目 2695370</a></div>
                                <div class="t_add">北京 · 个人</div>
                                <div class="num">0.00/874.26</div>
                            </div>
                        </li>
                        <li>
                            <div class="li_L">
                                <div class="t_1"><span>10.5</span>%</div>
                                <div class="t_2">折让<br />0%</div>
                                <div class="t_3">剩余<br />604天</div>
                            </div>
                            <div class="li_R">
                                <div class="t_name"><a href="#">债权转让项目 2695370</a></div>
                                <div class="t_add">北京 · 个人</div>
                                <div class="num">0.00/874.26</div>
                            </div>
                        </li>
                        <li>
                            <div class="li_L">
                                <div class="t_1"><span>10.5</span>%</div>
                                <div class="t_2">折让<br />0%</div>
                                <div class="t_3">剩余<br />604天</div>
                            </div>
                            <div class="li_R">
                                <div class="t_name"><a href="#">债权转让项目 2695370</a></div>
                                <div class="t_add">北京 · 个人</div>
                                <div class="num">0.00/874.26</div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="clear"></div>
        </div>

    </div>

@section('js')
    <script src="{{asset('js/jquery.circliful.min.js')}}" language="JavaScript" type="text/javascript"></script>
    <script type="text/javascript">
        $(function(){
            $('div[name=myStat]').circliful();
        });
    </script>
@endsection
@stop